//
//  YMDrawLineViewController.m
//  YMDrawingBoard
//
//  Created by 刘家俊 on 2020/12/2.
//  Copyright © 2020 余默. All rights reserved.
//

#import "YMDrawLineViewController.h"
#import "YMDrawLineView.h"

@interface YMDrawLineViewController ()

/** 画线板· */
@property (nonatomic, weak) YMDrawLineView *lineView;

@end

@implementation YMDrawLineViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];

    
    YMDrawLineView *lineView = [[YMDrawLineView alloc] initWithFrame:CGRectMake(0, Height_NavBar, SCREEN_WIDTH, SCREEN_HEIGHT)];
    [self.view addSubview:lineView];
    self.lineView = lineView;
    self.lineView.lines = [AppSingleInstance sharedInstance].linePoints;
//    self.lineView.lines = [self datas];
}


- (NSArray *)datas {
    NSArray *arr = @[
        
        @[
            @{@"x":@"174",@"y":@"116.5"},
            @{@"x":@"187.5",@"y":@"120"},
            @{@"x":@"187.5",@"y":@"120"},
            @{@"x":@"197.5",@"y":@"120"},
            @{@"x":@"201",@"y":@"118.5"},
            @{@"x":@"202.5",@"y":@"118.5"},
            @{@"x":@"204.5",@"y":@"118.5"},
            @{@"x":@"207",@"y":@"118"},
            @{@"x":@"216.5",@"y":@"117"},
            @{@"x":@"227",@"y":@"117"},
        ],
        @[
            @{@"x":@"174.5",@"y":@"188"},
            @{@"x":@"177",@"y":@"188"},
            @{@"x":@"177",@"y":@"188"},
            @{@"x":@"177.5",@"y":@"187.5"},
            @{@"x":@"178.5",@"y":@"187.5"},
            @{@"x":@"179",@"y":@"187.5"},
            @{@"x":@"180",@"y":@"187"},
            @{@"x":@"180.5",@"y":@"187"},
            @{@"x":@"181.5",@"y":@"187.5"},
            @{@"x":@"183",@"y":@"187.5"},
            @{@"x":@"185",@"y":@"187.5"},
            @{@"x":@"186",@"y":@"187.5"},
            @{@"x":@"188",@"y":@"187.5"},
            @{@"x":@"189",@"y":@"187.5"},
            @{@"x":@"191",@"y":@"187.5"},
            @{@"x":@"192",@"y":@"187.5"},
            @{@"x":@"194",@"y":@"187.5"},
            @{@"x":@"196",@"y":@"187.5"},
            @{@"x":@"199",@"y":@"187.5"},
            @{@"x":@"200",@"y":@"187.5"},
            @{@"x":@"201",@"y":@"187.5"},
            @{@"x":@"210",@"y":@"187.5"},
            @{@"x":@"222",@"y":@"187.5"},
        ]
    ];
    
    return arr;
}

@end
